<template>
  <section class="tag-item-wrapper">
    <span>{{ tag.name }}</span>
    <i class="el-icon-close" @click="$emit('delete',tag.id)" />
  </section>
</template>

<script>
export default {
  props: {
    tag: {
      type: String,
      default: '标签',
    },
  },
};
</script>

<style lang="scss" scoped>
.tag-item-wrapper{
  padding: 0 10px;
  margin-right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
